From: Richard M. Stallman Date: Sat, 20 Mar 2004 01:08:08 +0000 (+0000) Subject: Add -znocombreloc to LDFLAGS if supported. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~23629 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0bdea14311dcaaa2069e45bb76ea91a3e8ccd30c;p=emacs.git Add -znocombreloc to LDFLAGS if supported. --- diff --git a/configure.in b/configure.in index d5e4ba1e69b..8f80608f4a7 100644 --- a/configure.in +++ b/configure.in @@ -1273,6 +1273,18 @@ then ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" fi +dnl We need -znocombreloc if we're using a relatively recent GNU ld. +dnl If we can link with the flag, it shouldn't do any harm anyhow. +dnl (Don't use `-z nocombreloc' as -z takes no arg on Irix.) +late_LDFLAGS=$LDFLAGS +LDFLAGS="$LDFLAGS -znocombreloc" + +AC_MSG_CHECKING([For -znocombreloc]) +AC_LINK_IFELSE([main(){return 0;}], + [AC_MSG_RESULT(yes)], + LDFLAGS=$late_LDFLAGS + [AC_MSG_RESULT(no)]) + dnl checks for Unix variants AC_AIX